# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py-pygtksourceview2
_pkgname=pygtksourceview
pkgver=2.10.1
pkgrel=1
pkgdesc="Python bindings for gtksourceview2"
url="https://www.gnome.org/"
arch="all"
license="GPL"
depends="python2"
makedepends="gtksourceview2-dev py-gtk-dev python2-dev py-gobject-dev py-gobject-doc"
install=""
subpackages="$pkgname-dev"
source="https://download.gnome.org/sources/$_pkgname/2.10/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

prepare() {
	default_prepare
	update_config_guess
}

build() {
	cd "$builddir"
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--disable-static
	make
}

package() {
	cd "$builddir"
	make DESTDIR="${pkgdir}" install
}

sha512sums="88c45e8b20e49d41ce5b692df17be9d020d77878cf67f2cd2ed64c93baca4a0619217eca4a460be7a0fedd3bd14877f97e88a82728e113cbdeb31a9e43d97450  pygtksourceview-2.10.1.tar.gz"
